<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <meta name="renderer" content="webkit" />
  <link href="css/bootstrap.min.css" rel="stylesheet" />
  <link href="css/font-awesome.min.css" rel="stylesheet" />
  <link href="css/animate.css" rel="stylesheet" />
  <link href="css/style.css" rel="stylesheet" />
  <link href="css/plugins/toastr/toastr.min.css" rel="stylesheet">
</head>
<body class="top-navigation">
  <div id="wrapper">
    <div id="page-wrapper" class="gray-bg dashbard-1">
      <div class="row border-bottom">
        <nav class="navbar navbar-static-top" data-role="navigation" style="margin-bottom:0">
          <div class="navbar-header">
                        <div class="minimalize-styl-2">
              <a class="btn btn-primary" href="main.html"><i class="fa fa-home"></i> 主页</a>
              
              
              
              
              
              <!-- 配置点1 -->
              <!-- 上下文导航 -->
              <ol id="guide" class="breadcrumb">
                <!-- <li>一级分类</li> -->
                <!-- <li>二级分类</li> -->
                <!-- <li><strong>当前页面</strong></li> -->
              </ol>
              
              
              
              
              
            </div>
          </div>
          <ul class="nav navbar-top-links navbar-right">
            <li><span class="text-muted welcome-message">欢迎使用Feces物流管理系统</span></li>
            <li><a href="login.html"><i class="fa fa-sign-out"></i> 退出</a></li>
          </ul>
        </nav>
      </div>
      
      
      
      
      <!-- 配置点2 -->
      <!-- 内容 -->
      <div class="wrapper wrapper-content animated fadeInRight">
      
      
      
      
        <!-- 配置点2.1 -->
        <!-- 段落1 -->
        <div class="row">
          <div class="col-lg-12">
            <div class="ibox float-e-margins">
              <div class="ibox-title">
                <h5>信息录入</h5>
              </div>
              <div class="ibox-content">
                <div class="loginscreen   animated fadeInDown">
                  <div>
                    <h3></h3>
                    <p>修改供应商信息</p>
                    <form class="m-t" data-role="form">
                      <div class="form-group">
                        <label class="label label-info">供应商名称</label>
                        <input type="text" class="form-control" id="in_name" placeholder="请输入用户名" required="">
                      </div>
                      <div class="form-group">
                        <label class="label label-info">供应商地址</label>
                        <input type="text" class="form-control" id="in_address" placeholder="请输入身份证号" required="">
                      </div>
                      <div class="form-group">
                        <label class="label label-info">联系人</label>
                        <input type="text" class="form-control" id="in_contact" placeholder="请输入手机号码" required="">
                      </div>
                      <div class="form-group">
                        <label class="label label-info">联系电话</label>
                        <input type="text" class="form-control" id="in_contact_phone" placeholder="请输入手机号码" required="">
                      </div>
                      <div class="form-group">
                        <label class="label label-info">开户行</label>
                        <input type="text" class="form-control" id="in_bank" placeholder="请输入手机号码" required="">
                      </div>
                      <div class="form-group">
                        <label class="label label-info">银行账号</label>
                        <input type="text" class="form-control" id="in_bank_account" placeholder="请输入手机号码" required="">
                      </div>
                      <div class="form-group">
                        <label class="label label-info">传真</label>
                        <input type="text" class="form-control" id="in_fax" placeholder="请输入手机号码" required="">
                      </div>
                      <div class="form-group">
                        <label class="label label-info">邮编</label>
                        <input type="text" class="form-control" id="in_zip" placeholder="请输入手机号码" required="">
                      </div>
                      <div class="form-group">
                        <label class="label label-info">法人</label>
                        <input type="text" class="form-control" id="in_corporation" placeholder="请输入手机号码" required="">
                      </div>
                      <div class="form-group">
                        <label class="label label-info">备注</label>
                        <input type="text" class="form-control" id="in_remark" placeholder="请输入手机号码" required="">
                      </div>
                      <input type="text" class="form-control" id="in_id" required="">
                      <button type="button" onclick="updateSupplier()" class="btn btn-primary block full-width m-b">修改</button>
                    </form>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
                <!-- 配置点2.2 -->
        <!-- 段落2 -->
        <div class="row">
          <div class="col-lg-12">
            <div class="ibox float-e-margins">
              <div class="ibox-title">
                <h5>段落2标题</h5>
              </div>
              <div class="ibox-content">
                <h5>段落2内容</h5>
              </div>
            </div>
          </div>
        </div>
        
        
        
        <!-- 配置点2.x -->
        <!-- ... -->
        
  
        
      </div>
    </div>
  </div>
  <script src="js/jquery-2.1.1.min.js"></script>
  <script src="js/bootstrap.min.js"></script>
  <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
  <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
  <script src="js/hplus.js"></script>
  <script src="js/plugins/pace/pace.min.js"></script>
  <script src="js/plugins/toastr/toastr.min.js"></script>
  
  
  
  <!-- 配置点3 -->
  <!-- 载入后的js脚本 -->
  <script>
$(function(){
  // you JavaScript code here!
});
  var url="api/supplier";
  function updateSupplier()
  {
    var id =$("#in_id").val();
    var name=$("#in_name").val();
    var address=$("#in_address").val();
    var contact=$("#in_contact").val();
    var contact_phone=$("#in_contact_phone").val();
    var bank=$("#in_bank").val();
    var bank_account=$("#in_bank_account").val();
    var fax=$("#in_fax").val();
    var zip=$("#in_zip").val();
    var corporation=$("#in_corporation").val();
    var remark=$("#in_remark").val();
    $.ajax({
      type: "put",
      url: url,
      data: {
        id : id,
        name    : name,
        address  : address,
        contact : contact,
        contact_phone : contact_phone,
        bank : bank,
        bank_account : bank_account,
        fax : fax,
        zip : zip,
        corporation : corporation,
        remark : remark,
      },
      success: function(result){
        
      }
    });
    
  } 
  </script>

  
  
  
</html>
